﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GCELibrary.Current;
namespace ZF.BLL
{
    public enum UserStatus
    {
        /// <summary>
        /// 
        /// </summary>
        [Description(Name = "未设置")]
        [AuxiliaryField]
        None = 0,//空类型，默认值
        /// <summary>
        /// 正常
        /// </summary>
        [Description(Name = "服务中")]
        Normal = 0x01,
        /// <summary>
        /// 停止
        /// </summary>
        [Description(Name = "停止服务")]
        Stop = 0x02,
        /// <summary>
        /// 过期
        /// </summary>
        [Description(Name = "过期")]
        Overdue = 0x04,
    }
    /// <summary>
    /// 用户类型
    /// </summary>
    public enum UserType
    {
        #region
        /// <summary>
        /// 未设置类型
        /// </summary>
        [AuxiliaryField]
        [Description(Name = "未设置")]
        None,
        /// <summary>
        /// 系统用户
        /// </summary>
        [Description(Name="系统管理员")]
        Admin,
        /// <summary>
        /// 监控用户
        /// </summary>
        [Description(Name = "普通用户")]
        Member,
        #endregion
    }
    public static partial class EnumDescription
    {
        public static DescriptionAttribute GetDescription(this UserType type)
        {
            return DescriptionAttribute.GetEnumDescription(type);
        }
        public static DescriptionAttribute GetDescription(this UserStatus type)
        {
            return DescriptionAttribute.GetEnumDescription(type);
        }
    }
}
